package com.erp.fin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.fin.dao.PaymentDao;
import com.erp.fin.domain.PaymentDO;
import com.erp.fin.service.PaymentService;



@Service
public class PaymentServiceImpl implements PaymentService {
	@Autowired
	private PaymentDao paymentDao;
	
	@Override
	public PaymentDO get(Long id){
		return paymentDao.get(id);
	}
	
	@Override
	public List<PaymentDO> list(Map<String, Object> map){
		return paymentDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return paymentDao.count(map);
	}
	
	@Override
	public int save(PaymentDO payment){
		return paymentDao.save(payment);
	}
	
	@Override
	public int update(PaymentDO payment){
		return paymentDao.update(payment);
	}
	
	@Override
	public int remove(Long id){
		return paymentDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return paymentDao.batchRemove(ids);
	}

	@Override
	public int reviewyes(Long id) {
		return paymentDao.reviewyes(id);
	}

	@Override
	public int reviewno(Long id) {
		return paymentDao.reviewno(id);
	}

	@Override
	public int seccondyes(Long id) {
		return paymentDao.seccondyes(id);
	}

	@Override
	public int seccondno(Long id) {
		return paymentDao.seccondno(id);
	}

	@Override
	public List<PaymentDO> getPaymentByPur(Long putId) {
		return paymentDao.getPaymentByPur(putId);
	}

	@Override
	public int payment(PaymentDO payment) {
		return paymentDao.payment(payment);
	}

	@Override
	public int confirmfirst(Long id) {
		return paymentDao.confirmfirst(id);
	}

}
